﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WebCommit.Common.Enums;
using System.ComponentModel;

namespace WebCommit.Common.Entitys
{
	/// <summary>
	/// 网页资源
	/// </summary>
	public class WebResourceEntity : BaseEntity
	{
		public WebResourceEntity() :base()
		{ }
		public virtual string Url
		{
			get;
			set;
		}


		public virtual string Title
		{
			get;
			set;
		}
		public virtual string Domain
		{
			get;
			set;
		}
		public virtual string RootDomain
		{
			get;
			set;
		}

		public virtual string CharacterSet
		{
			get;
			set;
		}

		public virtual string ErrorMsg
		{
			get;
			set;
		}

		[DefaultValue(CrawlStatus.Pending)]
		public virtual CrawlStatus UrlCrawlStatus
		{
			get;
			set;
		}

		[DefaultValue(CrawlStatus.Pending)]
		public virtual CrawlStatus WebCrawlStatus
		{
			get;
			set;
		}

		[DefaultValue(false)]
		public bool Saved
		{
			get;
			set;
		}

		/// <summary>
		/// 来源
		/// </summary>
		public virtual WebSource Source
		{
			get;
			set;
		}

	}
}
